package com.eis.persist.model.function;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

import com.eis.persist.model.base.BasePersist;

public class PersistDataFetchSync extends BasePersist implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 402659675847483900L;
	private int id;
	private Date lastRun;
	private String currentRunnerId;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getLastRun() {
		return lastRun;
	}
	public void setLastRun(Date lastRun) {
		this.lastRun = lastRun;
	}
	public String getCurrentRunnerId() {
		return currentRunnerId;
	}
	public void setCurrentRunnerId(String currentRunnerId) {
		this.currentRunnerId = currentRunnerId;
	}
	
	public PersistDataFetchSync() {
		super();
	}
	
	public PersistDataFetchSync(Map<String, Object> dataRecord) {
		super(dataRecord);
		this.id = (Integer) dataRecord.get("id");
		this.lastRun = (Date) dataRecord.get("lastRun");
		this.currentRunnerId = (String) dataRecord.get("currentRunnerId");
	}
}
